home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / include / mgri.h < prev    next >
C/C++ Source or Header  |  1993-04-27  |  2KB  |  57 lines

  1. /*
  2.  * MG context attributes specific to Quick Renderman
  3.  *
  4.  */
  5.  
  6. #define   MG_RIWINID        101
  7. #define   MG_RIBORN        102
  8.  
  9. #define   MG_NXWINDOW        114
  10. #define   MG_NXVIEW        115
  11. #define   MG_RIWINDOW        116
  12. #define   MG_RICALLBACK        117
  13. #define   MG_RISTANDALONE       118
  14.  
  15. /* callback attributes (not context attributes!) */
  16. #define   MG_RIWINDOWICONIFIED        0
  17. #define   MG_RIWINDOWDEICONIFIED    1
  18. #define   MG_RIWINDOWEXPOSED        2 /* use with nonretained windows? */
  19. #define   MG_RIWINDOWRESIZED        3
  20. #define   MG_RIWINDOWCLOSED          4
  21. #define   MG_RIWINDOWBECAMEKEY        5
  22. #define   MG_RIWINDOWBECAMEMAIN        6
  23.  
  24. /* Context Attributes
  25.  * MG_RIWINID        mg window id
  26.  * MG_RIBORN        window has been created
  27.  * MG_NXWINDOW        associated OBJC window id
  28.  * MG_NXVIEW        associated OBJC view id
  29.  * MG_RIWINDOW        ?
  30.  * MG_RICALLBACK    used with callback functios (see below)
  31.  * MG_RISTANDALONE    set if events processed automatically in mg_worldend
  32.  *             (if your application will do NeXTStep stuff itself,
  33.  *            set this to 0. setting to 1 make window options work)
  34.  *
  35.  * Callback Attributes
  36.  * MG_RIWINDOWICONIFIED        calls back when window iconifies
  37.  * MG_RIWINDOWDEICONIFIED    calls back when window deiconifies
  38.  * MG_RIWINDOWEXPOSED        if you use a non-retained window, this
  39.  *                 callback will inform you if window exposes
  40.  * MG_RIWINDOWRESIZED        calls back when window resizes
  41.  * MG_RIWINDOWCLOSED        calls back when user closes window via
  42.  *                 title bar close button
  43.  * MG_RIWINDOWBECAMEKEY        calls back when user selects the window as key
  44.  * MG_RIWINDOWBECAMEMAIN    calls back when the window becomes main
  45.  *
  46.  *
  47.  * NOTE: If you're application is not written in the context of the appkit
  48.  * (as is the simple viewer example) then standalone is automatically set
  49.  * to process events in mg_worldend. If you deselect this, no callbacks
  50.  * will be performed because no events leading to the callbacks will be
  51.  * processed, unless your application handles this itself somehow...
  52.  */
  53.  
  54.  
  55. /* temporary hook for debugging */
  56. extern void mgri_debugcontext();
  57.